package com.example.untitled1

import android.os.Build
import androidx.annotation.RequiresApi
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine

@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
class MainActivity: FlutterActivity() {

    override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
        super.configureFlutterEngine(flutterEngine)
        val bleManager = BleManager(context)
        MethodChannelDemo(flutterEngine.dartExecutor.binaryMessenger,bleManager)
        BasicMessageChannelDemo(flutterEngine.dartExecutor.binaryMessenger,bleManager)
    }

}
